home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 17 / Mac Magazin and MacEasy Magazine CD - Issue 17.iso / mac / Grafik & Text & Film / imagemap / demomap / DemoPicture2.map < prev    next >
Text File  |  1995-08-11  |  3KB  |  88 lines

  1. # DemoPicture2.map
  2. #
  3. # Example Mac-imagemap map file.
  4. # by: Lutz Weimann
  5. # latest modification at: 10th August 1995
  6. #
  7.  
  8. # uncomment the following line to switch testmode on:
  9. #testmode
  10.  
  11. # default originally defines the URL to be returned, if no region
  12. # specified below has been clicked: just points to some homepage.
  13. # (Should actually never be referenced, since point specifications
  14. # follow below.)
  15. # Note: "$RefURL" is a "special-URL", which substitutes imagemap.cgi
  16. # by the URL of the HTML-page where the user clicked on the map.
  17. # It works only with Web-browsers which send the "X-Referer:"-line
  18. # with their HTTP-request.
  19. #
  20. default $RefURL
  21.  
  22. # point xp,yp - specifies a point. The URL of the nearest point
  23. # replaces for each click outside a specific area within the
  24. # left pictures side map the default URL by the following url:
  25. point /imagemap/demomap/other_left_2.html
  26. 2,100
  27.  
  28. # Each click outside a specific area within the right pictures side
  29. # map to the following url:
  30. point /imagemap/demomap/other_right_2.html 399,100
  31.  
  32. # rect defines a rectangle by its upper left and lower right corner.
  33. #
  34.           rect /imagemap/demomap/green_rect.gif 36,25 99,99
  35.  
  36. # note: the following area (yellow rectangle) lies within the area of
  37.  
  38. #       red_circle. Since the first match in order is returned to the
  39. #       Web-client, yellow_rect will be never returned if placed
  40. #       after the red_circle.
  41. #
  42. rect /imagemap/demomap/yellow_rect.gif 162,60 192,79
  43.  
  44. # circle defines a circle by the circles middle point and
  45. # an arbitrary point on the circles edge.
  46. #
  47. circle /imagemap/demomap/red_circle.gif 176,67 214,67
  48.  
  49. # circ defines a circle or an ellipse by the upper left and
  50. # lower right corner of the covering rectangle.
  51. # for compatibility with WebMap 2.0, you can also use the word 
  52. # "oval" instead of "circ"
  53. #
  54. # this specification will be probably not understood by the
  55. # httpd-imagemap program, and so, it has been written as a pseudo
  56. # comment. So this map file can be used by httpd-imagemap under
  57. # UNIX without any modifications (please tell me if I'm wrong with
  58. # this statement). This statement is interpreted by
  59. # Mac-imagemap, just as there were no leading characters #$ .
  60. #
  61. #$oval /imagemap/demomap/cyan_ellipse.gif 54,128 145,175
  62.  
  63. # circrad defines a circle by its center point and its radius.
  64. # this type of specification will no longer be supported within
  65. # future versions. Use instead of 
  66. # "circrad x,y r" the specification "circle x,y x+r,y"
  67. #
  68. #$circrad /imagemap/demomap/blue_circle.gif 286,149 24
  69.  
  70. # Finally, two arbitrary polygonal regions are defined within
  71. # this map. Note that the first point and the last point of the
  72. # polygons match, just as you will get it usually when generating
  73. # these lines with WebMap. If the last point does not match the
  74. # first one, Mac-ImageMap internally adds a point to the polygon
  75. # behind the last one which has the same coordinates as the first
  76. # polygon-point.
  77. # Note also that the poly-specifications are written on multiple
  78. # lines. Mac-ImageMap just checks, if a line begins with a letter
  79. # (lowercase or uppercase) to identify a line where a new 
  80. # specification begins.
  81. #
  82. poly /imagemap/demomap/pink_poly.gif 182,126
  83.    206,126 215,143 215,166 203,178 180,178 169,168 169,141 182,126
  84.  
  85.    poly /imagemap/demomap/green_poly.gif 301,11
  86.       321,51 349,51 319,81 343,107 296,83 250,110 277,81 246,50
  87.       273,51 301,11
  88.